<!-- 商品图片 -->
<template>
	<view class="container">
		<text class="title">商品图片</text>
		<view class="pictures">
			<view class="pic-box">
				<image class="pic" src="/pagesB-goods-manage/static/images/will-delete/2.png" mode="aspectFill"></image>
				<button class="close-btn iconfont">&#xe603;</button>
			</view>
			<view class="pic-box">
				<image class="pic" src="/pagesB-goods-manage/static/images/will-delete/3.png" mode="aspectFill"></image>
				<button class="close-btn iconfont">&#xe603;</button>
			</view>
			<view class="pic-box">
				<image class="pic" src="/pagesB-goods-manage/static/images/will-delete/4.png" mode="aspectFill"></image>
				<button class="close-btn iconfont">&#xe603;</button>
			</view>
			<view class="pic-box">
				<button class="btn iconfont btn-transition-scale95">&#xe617;</button>
			</view>
		</view>
	</view>
</template>

<script setup>
	
</script>

<style lang="scss" scoped>
	.container {
		padding: 30rpx 25rpx 0;

		.title {
			font-weight: bold;
			font-size: 30rpx;
			color: #222222;
			line-height: 1.5;
			padding-left: 4rpx;
		}
	}

	.pictures {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		column-gap: 30rpx;
		row-gap: 30rpx;
		background-color: white;
		border-radius: 20rpx;
		padding: 30rpx;
		margin-top: 30rpx;
		overflow: hidden;
		
		.pic-box {
			position: relative;
			padding-bottom: 100%;
			
			.pic {
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				border-radius: 10rpx;
			}
			
			.close-btn {
				position: absolute;
				top: 0;
				right: 0;
				transform: translate(50%, -50%);
				font-size: 40rpx;
				color: #D9D9D9;
				background: radial-gradient(#929292 50%, transparent 50%);
			}
			
			.btn {
				position: absolute;
				top: 0;
				left: 0;
				display: flex;
				align-items: center;
				justify-content: center;
				width: 100%;
				height: 100%;
				font-size: 60rpx;
				color: #60646F;
				background: #F5F4F5;
				border-radius: 10rpx;
			}
		}
	}
</style>